package homework0711;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

public class Card {
    public static void main(String[] args) {
        List<Integer>l1= new ArrayList<>();
        l1.add(2);
        l1.add(3);
        l1.add(4);
        l1.add(7);
        l1.add(1);
        l1.sort(new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o1-o2;
            }
        });
        System.out.println(l1);
    }

    /**
     * 点数
     */
    private String[] point = {"♠", "♥", "♣", "♦"};
    /**
     * 花色（黑桃、红心、梅花、方块，♠、♥、♣、♦）
     */
    private String[] type = {"3-0", "4-1", "5-2", "6-3", "7-4", "8-5", "9-6", "10-7", "J-8", "Q-9", "K-10", "A-11", "2-12"};

    public Card() {
    }

    @Override
    public String
    toString() {
        return "Card{" +
                "point=" + Arrays.toString(point) +
                ", type=" + Arrays.toString(type) +
                '}';
    }

    public String[] getPoint() {
        return point;
    }

    public void setPoint(String[] point) {
        this.point = point;
    }

    public String[] getType() {
        return type;
    }

    public void setType(String[] type) {
        this.type = type;
    }
}
